package com.example.emailcraft.entity.request;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class SaveTemplateRequest {

    @NotBlank(message = "模板标题不能为空")
    private String title;

    @NotBlank(message = "模板内容不能为空")
    private String content;

    @NotNull(message = "模板类型不能为空")
    private Integer categoryId;

}
